package com.example.controller

import com.example.service.UserService
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

/**
 * @Author:0xOO
 * @Date: 2018/9/26 0026
 * @Time: 14:42
 */
@RestController
@RequestMapping("/testBoot")
class UserController {
    @Autowired
    private val userService: UserService? = null

    @RequestMapping("getUser/{id}")
    fun GetUser(@PathVariable id: Int): String {
        return userService!!.Sel(id).toString()
    }
}